<?php
/**
 * Created by PhpStorm.
 * User: osyun
 * Date: 2017/8/10
 * Time: 18:10
 */

namespace app\cms\model;

use think\Model as ThinkModel;
use think\Db;

class IndexList extends ThinkModel
{
    /*
     * 根据条件返回列表数据
     */
    public function getByWhereList($order = 'id',$page_number=1,$page_size=10){
//        $result = Db::name('index_list')
//            ->order($order)
//            ->page($page_number,$page_size)
//            ->select();
        $page = 10;
        $result = Db::name('index_list')->where(['isdel'=>2])->paginate($page);
        return $result;
    }
}